package com.xyck.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xyck.common.annotation.Excel;
import com.xyck.common.core.domain.BaseEntity;

/**
 * 物品管理对象 tb_article
 * 
 * @author 星野漫游
 * @date 2024-07-07
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long id;

    /** 物品名 */
    @Excel(name = "物品名")
    private String articleName;

    /** 仓库外键 */
    @Excel(name = "仓库外键")
    private Long stashId;

    /** 物品分类外键 */
    @Excel(name = "物品分类外键")
    private Long sortId;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleName(String articleName) 
    {
        this.articleName = articleName;
    }

    public String getArticleName() 
    {
        return articleName;
    }
    public void setStashId(Long stashId) 
    {
        this.stashId = stashId;
    }

    public Long getStashId() 
    {
        return stashId;
    }
    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleName", getArticleName())
            .append("stashId", getStashId())
            .append("sortId", getSortId())
            .append("quantity", getQuantity())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
